package com.xjtu.mybatisplus.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjtu.mybatisplus.model.domain.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xjtu.mybatisplus.model.vo.SubNoticeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lsong
 * @since 2023-12-27
 */

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    @Select("select id from intensification.article")
    List<Long> getAllIds();
    List<Article> selectFavById(Page<Article> page, Long userId);

    SubNoticeVo getNoticeById(Long articleId);
}
